package ooday02;

public class TeacherTest {
    public static void main(String[] args) {
        //利用构造方法赋值，传参
        Teacher zs = new Teacher("张三",25,"廊坊",5500);
        //访问Teacher的成员变量，访问Teacher的成员变量，与构造方法作用相同
//        zs.name = "张三";
//        zs.age = 25;
//        zs.address = "廊坊";
//        zs.salary = 5500.0;
        //调用方法
        zs.eat();
        zs.sleep();
        zs.sayHi();
        zs.teach();
    }
}
